<?php
if(isset($_GET['id'])){
    $category = $Bus->Category->getItemById($_GET['id']);
    if($category){
        $Bus->Category->delItemWithId($_GET['id']);
        $url = url('admin','cats-manager');
        redirect($url);
    }else{
        $url = url('errors','404');
        redirect($url);
    }
}else{
    $url = url('errors','404');
    redirect($url);
}
?>